package com.cloudeasy.core.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * OAuth2客户端属性
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OAuth2ClientProperties {
    /**
     * 客户端Id
     */
    private String clientId = "cloudeasy";
    /**
     * 客户端密码
     */
    private String clientSecret = "cloudeasy-secret";
    /**
     * 范围
     */
    private String scope = "all";
    /**
     * 访问令牌有效时间（秒）
     */
    private int accessTokenValiditySeconds = 7 * 24 * 60 * 60;
}
